package com.och.mrcp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "rtp")
@Data
public class RtpConfig {
    
    private int payloadType = 8; // PCMA
    private int sampleRate = 8000;
    private int channels = 1;
    private int frameSize = 160; // 20ms at 8kHz
    private int jitterBufferSize = 3;
    private long jitterBufferTimeoutMs = 1000; // 抖动缓冲区超时时间（毫秒）
    private boolean enableJitterBuffer = true;
    // 端口分配配置
    private int minPort = 10000; // RTP端口范围最小值
    private int maxPort = 20000; // RTP端口范围最大值
}
